package com.itheima_01;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

//C:\Users\wfsxy\Desktop\image\timg.jpg
//day11_demo\李沁.jpg
public class Test01 {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos = new FileOutputStream("day11_demo\\李沁.jpg");

        FileInputStream fis = new FileInputStream("C:\\Users\\wfsxy\\Desktop\\image\\timg.jpg");

       int i;
        while (( i = fis.read())!=-1){
            fos.write(i);
        }
        fis.close();
        fos.close();
    }
}
